﻿using Autofac;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestService.Common.IoC
{
    public class IoCFactory
    {
        private static IoCFactory _instance;
        private static object _lockObj = new object();

        private IoCFactory() { }

        public static IoCFactory Instance
        {
            get
            {
                if (_instance == null)
                    lock (_lockObj)
                        if (_instance == null)
                            _instance = new IoCFactory();
                return _instance;
            }
        }

        public IContainer CurrentContainter { get; set; }
    }
}
